package com.ruoyi.system.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * APP收发消息对象 t_mess_receive
 * 
 * @author wp
 * @date 2023-08-10
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Accessors(chain = true)
@TableName(value = "t_mess_receive", excludeProperty = {"createTime","createBy","updateTime","updateBy","remark"})
public class MessReceive extends BaseEntity {

    /** id */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("发送关联ID")
    private Long sendId;

    @ApiModelProperty("接收人id")
    private Long receiveUserId;

    /** 接收时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("接收时间")
    private Date receiveTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("查看时间")
    private Date readTime;

    @ApiModelProperty("是否查看（0否1是）")
    private Integer isRead;

    @ApiModelProperty("是否删除（0否1是）")
    private Integer isDel;

    @ApiModelProperty("接收用户名称")
    @TableField(exist = false)
    private String receiveUserName;

    @TableField(exist = false)
    private MessSend messSendDO;
}
